<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php echo $cabecalho; ?>
<?php echo $menu_esq; ?>
<div id="mainContent">
<h1>Validar Alunos</h1>
<h3>Deseja realmente criar estes alunos vindos do arquivo CSV?</h3>
<?php echo form::open("sa/aluno/salvar"); ?>
<table width="100%" border="1" style="font-size: 10px; background-color: #fff">
      <tr>
        <td>matricula</td>
        <td>nome</td>
        <td>data_nasc</td>
        <td>rg</td>
        <td>cpf</td>
        <td>estado</td>
        <td>fone</td>
        <td>sexo</td>
        <td>escola</td>
        <td>responsavel</td>
        <td>logradouro</td>
        <td>bairro</td>
        <td>email</td>
        <td>periodo ingresso</td>
        <td>forma ingresso</td>
        <td>periodo desligamento</td>
        <td>forma desligamento</td>
      </tr>
      <?php foreach($alunos as $aluno){?>
	  <tr>
        <td><?php echo $aluno->matricula; ?></td>
        <td nowrap="nowrap"><?php echo $aluno->nome; ?></td>
        <td><?php echo $aluno->data_nasc; ?></td>
        <td><?php echo $aluno->rg; ?></td>
        <td><?php echo $aluno->cpf; ?></td>
        <td><?php echo $aluno->estado; ?></td>
        <td><?php echo $aluno->fone; ?></td>
        <td><?php echo $aluno->sexo; ?></td>
        <td nowrap="nowrap"><?php echo $aluno->escola; ?></td>
        <td nowrap="nowrap"><?php echo $aluno->responsavel; ?></td>
        <td nowrap="nowrap"><?php echo $aluno->logradouro; ?></td>
        <td nowrap="nowrap"><?php echo $aluno->bairro; ?></td>
        <td><?php echo $aluno->email; ?></td>
        <td><?php echo $aluno->periodo_ingresso; ?></td>
        <td><?php echo $aluno->forma_ingresso; ?></td>
        <td><?php echo $aluno->periodo_desligamento; ?></td>
        <td><?php echo $aluno->forma_desligamento; ?></td>
      </tr>
      <?php }?>
      <tr>
        <td colspan="5"><?php echo form::submit('enviar', 'Criar Todos os Alunos')?>&nbsp;</td>
        <td colspan="12"><?php echo html::anchor('sa/aluno/listar/', 'Cancelar'); ?>&nbsp;</td>
      </tr>
    </table>
<?php echo form::hidden('arquivocsv', $arquivocsv); ?>
<?php echo form::hidden('mat_ano', $mat_ano); ?>
<?php echo form::hidden('mat_let', $mat_let); ?>
<?php echo form::hidden('mat_ini', $mat_ini); ?>

<?php echo form::hidden('acao', 'criar_csv'); ?>
<?php echo form::close(); ?>
<!-- end #mainContent --></div>
<?php echo $rodape; ?>